package singleton;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import file.LoadProperties;

public class ConfigPropertiesSingleton {
    private static ConfigPropertiesSingleton CONFIG;
    private Properties prop;
    
    private ConfigPropertiesSingleton() throws FileNotFoundException, IOException{
        prop = LoadProperties.load("config.properties");
    }
    
    public static ConfigPropertiesSingleton getConfigProperties() throws FileNotFoundException, IOException{
        if(CONFIG == null){
            CONFIG = new ConfigPropertiesSingleton();
        }
        return CONFIG;
    }

    public Properties getProp() {
        return prop;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }
    
    
   
}
